package com.sub.model;

import com.fasterxml.jackson.annotation.JsonProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.List;

@Table(name = "sp_first_menu")
public class SpFirstMenu{
    @Id
    @JsonProperty("id")
    @Column(name = "sp_first_menu_id")
    private String spFirstMenuId;

    @Column(name = "ad_client_id")
    private Integer adClientId;

    private String name;

    private String url;

    private String icon;

    private String isactive;

    private String code;

    private Integer sequence;

    private String exclusivepc;

    private List<SpSecondMenu> children;

    /**
     * @return sp_first_menu_id
     */
    public String getSpFirstMenuId() {
        return spFirstMenuId;
    }

    /**
     * @param spFirstMenuId
     */
    public void setSpFirstMenuId(String spFirstMenuId) {
        this.spFirstMenuId = spFirstMenuId;
    }

    /**
     * @return ad_client_id
     */
    public Integer getAdClientId() {
        return adClientId;
    }

    /**
     * @param adClientId
     */
    public void setAdClientId(Integer adClientId) {
        this.adClientId = adClientId;
    }

    /**
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return url
     */
    public String getUrl() {
        return url;
    }

    /**
     * @param url
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * @return icon
     */
    public String getIcon() {
        return icon;
    }

    /**
     * @param icon
     */
    public void setIcon(String icon) {
        this.icon = icon;
    }

    /**
     * @return isactive
     */
    public String getIsactive() {
        return isactive;
    }

    /**
     * @param isactive
     */
    public void setIsactive(String isactive) {
        this.isactive = isactive;
    }

    /**
     * @return code
     */
    public String getCode() {
        return code;
    }

    /**
     * @param code
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * @return sequence
     */
    public Integer getSequence() {
        return sequence;
    }

    /**
     * @param sequence
     */
    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    /**
     * @return exclusivepc
     */
    public String getExclusivepc() {
        return exclusivepc;
    }

    /**
     * @param exclusivepc
     */
    public void setExclusivepc(String exclusivepc) {
        this.exclusivepc = exclusivepc;
    }

    public SpFirstMenu() {
    }

    public SpFirstMenu(String isactive) {
        this.isactive = isactive;
    }

    public List<SpSecondMenu> getChildren() {
        return children;
    }

    public void setChildren(List<SpSecondMenu> children) {
        this.children = children;
    }
}